home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1996-01-17 | 1.4 KB | 41 lines |
- ' ************************************* Commands used:
- ' * * Set Rain Colour
- ' * Amcaf Examples * =Qsin
- ' * Set Rain Colour 2 V1.1 *
- ' * Written by Chris Hodges *
- ' * *
- ' *************************************
- '
- ' Remove the annoying mouse pointer.
- Hide
- ' Load a nice iff picture first. Also quite nice on intel outside :)
- 'Load Iff "Data/IntelOutside.iff",0
- Load Iff "Data/Beach.iff",0
- ' We don't want to see the scrolling margin, so we cut of the left side.
- Screen Display 0,144,40,304,256
- Screen Offset 0,1,0
- ' Define a small rainbow.
- Set Rainbow 0,0,64,"","",""
- ' We misuse Set Rain Colour to get access to an other hardware register.
- ' In this case, It's the scrollregister.
- Extension_8_1330 0,-63
- ' Fill the rainbow with some nice scroll values.
- For A=0 To 63
- ' The scrollvalue must lie between 0 and 15.
- S= Extension_8_1106(A*32,7)+7
- ' The registers holds the scrollvalues for the even and the odd planes.
- ' As we are not using dual playfield, we must set them to the same values.
- Rain(0,A)=S+S*16
- Next
- RY=0
- Repeat
- Wait Vbl
- ' Display the rainbow.
- Rainbow 0,RY,Y Hard(-1),258
- ' RY holds the base of the rainbow, and this value is increased all the time
- ' to scroll the rainbow up.
- Add RY,1,0 To 63
- Until Inkey$=Chr$(27) or Mouse Key<>0
- Screen Close 0
- Rainbow Del : View : Wait Vbl
- End